import request from '@/utils/request'

// 查询出库单列表
export function listOut(query) {
  return request({
    url: '/xiaoshou/out/list',
    method: 'get',
    params: query
  })
}

// 查询出库单详细
export function getOut(id) {
  return request({
    url: '/xiaoshou/out/' + id,
    method: 'get'
  })
}

// 新增出库单
export function addOut(data) {
  return request({
    url: '/xiaoshou/out',
    method: 'post',
    data: data
  })
}

// 修改出库单
export function updateOut(data) {
  return request({
    url: '/xiaoshou/out',
    method: 'put',
    data: data
  })
}

// 删除出库单
export function delOut(id) {
  return request({
    url: '/xiaoshou/out/' + id,
    method: 'delete'

  })
}


export function shipOut(data) {
  return request({
    url: '/xiaoshou/out/ship',
    method: 'put',
    data: data // 传递整个表单数据
  });
}
export function shipSh() {
  return request({
    url: '/xiaoshou/out/logisticsList',
    method: 'get'
  })
}
